package com.oilsection.demo.controller.res;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.oilsection.demo.po.ZrEvent;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ZrEventPageQueryResponse {
    private long len;

    private List<ZrEventQueryDto> zrEventList;

    @Data
    public static class ZrEventQueryDto {
        private Long id;

        private String kqName;

        private String zrdName;

        private String location;

        private Double quantity;

        @JsonFormat(pattern = "yyyy年MM月dd日", timezone = "GMT+8")
        private Date zrTime;
    }
}
